/*ggDiykpsqb2Iwfq7RVsA5S3WtT5i+IBMmKSa/w+jr3ppX3qUmrkEHyrrjZ+vYLet*/
/*
 * @Author: xiahui 
 * @PageInfo: 插行
 * @Date: 2019-03-06 16:33:02 
 * @Last Modified by: xiahui
 * @Last Modified time: 2019-03-13 09:00:53
 */
import { AREA, LINEITMES, FIELDS } from '../../constance';
import { RownoUtils } from '../../../../../scmpub/scmpub/pub/tool/editTableTools';

export default function(props, record, index) {
	let newRow = { values: {} };
	for (let key in record.values) {
		if (LINEITMES.copyItems.includes(key)) {
			newRow.values[key] = record.values[key];
		}
	}

	props.editTable.addRow(AREA.listTableId, index, false, newRow.values);
	RownoUtils.setRowNo(props, AREA.listTableId, FIELDS.crowno);
}

/*ggDiykpsqb2Iwfq7RVsA5S3WtT5i+IBMmKSa/w+jr3ppX3qUmrkEHyrrjZ+vYLet*/